import 'package:flutter/material.dart';

main() {
  runApp(const MaterialApp(home: StatelessHome()));
}

class StatelessHome extends StatelessWidget {
  const StatelessHome({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Container'),
        backgroundColor: Colors.red,
      ),
      body: Container(
        color: Colors.green,
        width: 300,
        height: 300,
        // alignment: Alignment.center, // 水平和垂直两个方向对其
        // alignment: const Alignment(0.5, -0.5),
        // padding: const EdgeInsets.all(50), // padding: 50
        // padding: const EdgeInsets.only(left: 100), // padding-left: 100
        padding: const EdgeInsets.symmetric(horizontal: 50), // padding-left:50; padding-right:50
        child: const Text(
          'GUO',
          style: TextStyle(backgroundColor: Colors.pink),
        ),
      ),
    );
  }
}
